package com.hcg.multidatasourceofanno2.common.function;

public enum ErrorMsgCode {
    SYS_ERROR("SYS00001"),
    ACCESS_DATABASE_ERROR("SYS00002"),
    SIGNATURE_EXCEPTION("SYS00003"),
    NO_HANDLER_FOUND_ERROR("SYS00404"),
    NO_AUTH_ERROR("SYS00401"),
    FORBIDDEN_OPERATION("SYS00403", "FORBIDDEN_OPERATION"),
    THREAD_POOL_FULL_ERROR("SYS00004"),
    SCHEDULE_TASK_EXCEPTION("SYS00005"),
    SERVER_RESOURCE_NOT_FOUND("SYS00006"),
    SERVER_NOT_AVAILABLE("SYS00007"),
    UNABLE_ACQUIRE_DISTRUBUTED_LOCK("SYS00100"),
    CUMULATIVE_ERROR("SYS00101"),
    BEAN_VALIDATION_ERROR("SYS10001"),
    CLIENT_EXCEPTION("SYS20000"),
    CLIENT_EXCEPTION_UNKNOWN_HOST("SYS20001"),
    CLIENT_TIMEOUT("SYS20002"),
    ILLEGAL_PARAMETER("SYS30001"),
    ILLEGAL_HTTP_REQUEST_HEADER("SYS30002"),
    PRODUCER_RABBIT_EXCEPTION("SYS40001"),
    CONSUMER_RABBIT_EXCEPTION("SYS40021"),
    MSG_CD_NOT_EXISTS("SYS99999"),
    CONTINUE_RESOLVE("SYS88888");

    private String msgCd;
    private String msgInfo;

    private ErrorMsgCode(String msgCd, String msgInfo)
    {
        this.msgCd = msgCd;
        this.msgInfo = msgInfo;
    }

    private ErrorMsgCode(String msgCd) {
        this.msgCd = msgCd;
    }

    public String getMsgCd() {
        return this.msgCd;
    }

    public String getMsgInfo() {
        return this.msgInfo;
    }
}
